switch

This block is part of the modal functions group and was last modified in core v12.0.4.

switch v12.0.4

Returns a inpinfunction based of the given expression.

In pins 2
  • expression required
    value

    The expression to evaluate.

  • default
    inpinfunction

    The default statement to be executed.

Out pins 2
  • func.
    inpinfunction

    Returns the inpinfunction matching the expression.

  • match
    condition

    Returns true in case a match was found.

A typical wiring for switch: the inpinfunction out pin feeds input.

Studio canvas example for the switch block: typical wiring for switch.

Version history

Introduced in v12.0.4.


Back to modal functions Return to the main group to view all sub-groups Back to condition function Return to the group to view all blocks within this group